import {Route} from 'react-keeper'
import LoginFilter from '../../components/loginfilter/index'
import Myinfo from './myinfo';
import Toupiao from './toupiao';
import MyBm from './bm';

const PageHome = (cb) => {
  require.ensure([], () => cb(require('./PageHome.jsx')), 'home')
};

export default {
  route: () => (
    <Route loadComponent={PageHome} path='/home' enterFilter={[LoginFilter]} >
      <Myinfo.route />
      <Toupiao.route />
      <MyBm.route />
    </Route>
  )
};
